﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace EzyGoEzySystem.Models
{
    /// <summary>
    /// Keep track of board/alight history of te commuter
    /// </summary>
    /// <author>Hoang Nguyen Nhat Tao</author>
    public class TravelJournalEntry
    {
        #region Scalar Properties

        [Key]
        public int ID { get; set; }

        [Required]
        public DateTime BoardTime { get; set; }

        public DateTime? AlightTime { get; set; }

        public double Fare { get; set; }

        [Required]
        public int AccountID { get; set; }

        [Required]
        public string TravelStatus { get; set; }

        #endregion

        #region Navigation Properties

        // one travel journal entry belongs to one account
        public virtual Account Account { get; set; }

        #endregion
    }
}